import axios from './request';

export default {
  getClasses(data) {
    return axios.get('/classes', {
      params: data,
    });
  },
  classesExist(data) {
    return axios.get('/classes/exist', {
      params: data,
    });
  },
  editClasses(id, data) {
    return axios.put(`/classes/${id}`, data);
  },
  deleteClasses(id, data) {
    return axios.delete(`/classes/${id}`, data);
  },
  addClasses(data) {
    return axios.post('/classes', data);
  },
};
